import Vue from 'vue'
import App from './App'
import getDomInfo from './static/js/getDomInfo.js'
import convert from './static/js/convert.js'
import time from './static/js/time.js'
import store from './store'
import http from './http'
import api from './http/api.js'
import popup from '@/pages/common/popup.vue'
import selectItem from '@/pages/common/select.vue'
import screen from '@/pages/common/screen.vue'
import articleExtend from '@/pages/common/articleExtend.vue'
import hint from '@/pages/common/hint.vue'
import loading from '@/pages/common/loading.vue'

Vue.config.productionTip = false

Vue.prototype.$getDomInfo = getDomInfo;
Vue.prototype.$convert = convert;
Vue.prototype.$time = time;
Vue.prototype.$store = store;
Vue.prototype.$http = http;
Vue.prototype.$api = api;

Vue.component('popup',popup)
Vue.component('selectItem',selectItem)
Vue.component('screen',screen)
Vue.component('articleExtend',articleExtend)
Vue.component('hint',hint)
Vue.component('loading',loading)

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
